[INFO] cloning repository https://github.com/astrojhgu/lifetime_test
[INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/astrojhgu/lifetime_test" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fastrojhgu%2Flifetime_test", kill_on_drop: false }`
[INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fastrojhgu%2Flifetime_test'...
[INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }`
[INFO] [stdout] 068fca12a4cba200f97daca8b74c13d274206c66
[INFO] checking astrojhgu/lifetime_test against try#34585ff556bad2462429cd3775623c743928a72f for pr-102593
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fastrojhgu%2Flifetime_test" "/workspace/builds/worker-4/source", kill_on_drop: false }`
[INFO] [stderr] Cloning into '/workspace/builds/worker-4/source'...
[INFO] [stderr] done.
[INFO] validating manifest of git repo https://github.com/astrojhgu/lifetime_test on toolchain 34585ff556bad2462429cd3775623c743928a72f
[INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+34585ff556bad2462429cd3775623c743928a72f" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] started tweaking git repo https://github.com/astrojhgu/lifetime_test
[INFO] finished tweaking git repo https://github.com/astrojhgu/lifetime_test
[INFO] tweaked toml for git repo https://github.com/astrojhgu/lifetime_test written to /workspace/builds/worker-4/source/Cargo.toml
[INFO] crate git repo https://github.com/astrojhgu/lifetime_test already has a lockfile, it will not be regenerated
[INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+34585ff556bad2462429cd3775623c743928a72f" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:3d1cd00eb6e6ea2a7969240779edeaeff35b24be85036c63b883ba933028a15f" "/opt/rustwide/cargo-home/bin/cargo" "+34585ff556bad2462429cd3775623c743928a72f" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] [stdout] 4c0ac1d82d094065bae7d2a7ff7a08fb1c9b93b73943894e5a4bce5ec31d04e8
[INFO] running `Command { std: "docker" "start" "-a" "4c0ac1d82d094065bae7d2a7ff7a08fb1c9b93b73943894e5a4bce5ec31d04e8", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "4c0ac1d82d094065bae7d2a7ff7a08fb1c9b93b73943894e5a4bce5ec31d04e8", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "4c0ac1d82d094065bae7d2a7ff7a08fb1c9b93b73943894e5a4bce5ec31d04e8", kill_on_drop: false }`
[INFO] [stdout] 4c0ac1d82d094065bae7d2a7ff7a08fb1c9b93b73943894e5a4bce5ec31d04e8
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:3d1cd00eb6e6ea2a7969240779edeaeff35b24be85036c63b883ba933028a15f" "/opt/rustwide/cargo-home/bin/cargo" "+34585ff556bad2462429cd3775623c743928a72f" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] 15076f18ecf3b7753c105f636d42ba14baad7f38d8a850630aa362e205bd6550
[INFO] running `Command { std: "docker" "start" "-a" "15076f18ecf3b7753c105f636d42ba14baad7f38d8a850630aa362e205bd6550", kill_on_drop: false }`
[INFO] [stderr]    Compiling num-traits v0.2.6
[INFO] [stderr]     Checking lifetime_test v0.1.0 (/opt/rustwide/workdir)
[INFO] [stdout] warning: unused import: `num_traits::Num`
[INFO] [stdout]  --> src/main.rs:2:5
[INFO] [stdout]   |
[INFO] [stdout] 2 | use num_traits::Num;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_imports)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `num_traits::Num`
[INFO] [stdout]  --> src/main.rs:2:5
[INFO] [stdout]   |
[INFO] [stdout] 2 | use num_traits::Num;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_imports)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `k`
[INFO] [stdout]   --> src/main.rs:29:9
[INFO] [stdout]    |
[INFO] [stdout] 29 |     let k = seeds.len();
[INFO] [stdout]    |         ^ help: if this is intentional, prefix it with an underscore: `_k`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_variables)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `aa`
[INFO] [stdout]   --> src/main.rs:32:13
[INFO] [stdout]    |
[INFO] [stdout] 32 |         let aa:Vec<_> = seeds
[INFO] [stdout]    |             ^^ help: if this is intentional, prefix it with an underscore: `_aa`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `k`
[INFO] [stdout]   --> src/main.rs:29:9
[INFO] [stdout]    |
[INFO] [stdout] 29 |     let k = seeds.len();
[INFO] [stdout]    |         ^ help: if this is intentional, prefix it with an underscore: `_k`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_variables)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `aa`
[INFO] [stdout]   --> src/main.rs:32:13
[INFO] [stdout]    |
[INFO] [stdout] 32 |         let aa:Vec<_> = seeds
[INFO] [stdout]    |             ^^ help: if this is intentional, prefix it with an underscore: `_aa`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]   --> src/main.rs:21:46
[INFO] [stdout]    |
[INFO] [stdout] 21 | pub fn kmeans<'a, Scalar, T>(points: Vec<T>, mut seeds: Vec<T>) -> Vec<Vec<T>>
[INFO] [stdout]    |                                              ----^^^^^
[INFO] [stdout]    |                                              |
[INFO] [stdout]    |                                              help: remove this `mut`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_mut)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0597]: `points` does not live long enough
[INFO] [stdout]   --> src/main.rs:31:14
[INFO] [stdout]    |
[INFO] [stdout] 21 | pub fn kmeans<'a, Scalar, T>(points: Vec<T>, mut seeds: Vec<T>) -> Vec<Vec<T>>
[INFO] [stdout]    |               -- lifetime `'a` defined here
[INFO] [stdout] ...
[INFO] [stdout] 31 |     for p in &points {
[INFO] [stdout]    |              ^^^^^^^ borrowed value does not live long enough
[INFO] [stdout] ...
[INFO] [stdout] 34 |             a.distance_to(p)
[INFO] [stdout]    |             ---------------- argument requires that `points` is borrowed for `'a`
[INFO] [stdout] ...
[INFO] [stdout] 40 | }
[INFO] [stdout]    | - `points` dropped here while still borrowed
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0597]: `seeds` does not live long enough
[INFO] [stdout]   --> src/main.rs:32:25
[INFO] [stdout]    |
[INFO] [stdout] 21 |   pub fn kmeans<'a, Scalar, T>(points: Vec<T>, mut seeds: Vec<T>) -> Vec<Vec<T>>
[INFO] [stdout]    |                 -- lifetime `'a` defined here
[INFO] [stdout] ...
[INFO] [stdout] 32 |           let aa:Vec<_> = seeds
[INFO] [stdout]    |  _________________________^
[INFO] [stdout] 33 | |             .iter().map(|a|{
[INFO] [stdout]    | |___________________^ borrowed value does not live long enough
[INFO] [stdout] 34 |               a.distance_to(p)
[INFO] [stdout]    |               ---------------- argument requires that `seeds` is borrowed for `'a`
[INFO] [stdout] ...
[INFO] [stdout] 40 |   }
[INFO] [stdout]    |   - `seeds` dropped here while still borrowed
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 2 previous errors; 4 warnings emitted
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] For more information about this error, try `rustc --explain E0597`.
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]   --> src/main.rs:21:46
[INFO] [stdout]    |
[INFO] [stdout] 21 | pub fn kmeans<'a, Scalar, T>(points: Vec<T>, mut seeds: Vec<T>) -> Vec<Vec<T>>
[INFO] [stdout]    |                                              ----^^^^^
[INFO] [stdout]    |                                              |
[INFO] [stdout]    |                                              help: remove this `mut`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_mut)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0597]: `points` does not live long enough
[INFO] [stdout]   --> src/main.rs:31:14
[INFO] [stdout]    |
[INFO] [stdout] 21 | pub fn kmeans<'a, Scalar, T>(points: Vec<T>, mut seeds: Vec<T>) -> Vec<Vec<T>>
[INFO] [stdout]    |               -- lifetime `'a` defined here
[INFO] [stdout] ...
[INFO] [stdout] 31 |     for p in &points {
[INFO] [stdout]    |              ^^^^^^^ borrowed value does not live long enough
[INFO] [stdout] ...
[INFO] [stdout] 34 |             a.distance_to(p)
[INFO] [stdout]    |             ---------------- argument requires that `points` is borrowed for `'a`
[INFO] [stdout] ...
[INFO] [stdout] 40 | }
[INFO] [stdout]    | - `points` dropped here while still borrowed
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0597]: `seeds` does not live long enough
[INFO] [stdout]   --> src/main.rs:32:25
[INFO] [stdout]    |
[INFO] [stdout] 21 |   pub fn kmeans<'a, Scalar, T>(points: Vec<T>, mut seeds: Vec<T>) -> Vec<Vec<T>>
[INFO] [stdout]    |                 -- lifetime `'a` defined here
[INFO] [stdout] ...
[INFO] [stdout] 32 |           let aa:Vec<_> = seeds
[INFO] [stdout]    |  _________________________^
[INFO] [stdout] 33 | |             .iter().map(|a|{
[INFO] [stdout]    | |___________________^ borrowed value does not live long enough
[INFO] [stdout] 34 |               a.distance_to(p)
[INFO] [stdout]    |               ---------------- argument requires that `seeds` is borrowed for `'a`
[INFO] [stdout] ...
[INFO] [stdout] 40 |   }
[INFO] [stdout]    |   - `seeds` dropped here while still borrowed
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 2 previous errors; 4 warnings emitted
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] For more information about this error, try `rustc --explain E0597`.
[INFO] [stdout] 
[INFO] [stderr] error: could not compile `lifetime_test` due to 3 previous errors; 4 warnings emitted
[INFO] [stderr] warning: build failed, waiting for other jobs to finish...
[INFO] [stderr] error: could not compile `lifetime_test` due to 3 previous errors; 4 warnings emitted
[INFO] running `Command { std: "docker" "inspect" "15076f18ecf3b7753c105f636d42ba14baad7f38d8a850630aa362e205bd6550", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "15076f18ecf3b7753c105f636d42ba14baad7f38d8a850630aa362e205bd6550", kill_on_drop: false }`
[INFO] [stdout] 15076f18ecf3b7753c105f636d42ba14baad7f38d8a850630aa362e205bd6550
